﻿int[] list = { 1, 23, 34, 5, 67, 21, 90, 78, 98 };
Console.WriteLine("原始数组");
foreach (var item in list)
{
    Console.Write(item + " ");
}

// 逆转数组
Array.Reverse(list);
Console.WriteLine("逆转数组");
foreach (var item in list)
{
    Console.Write(item + " ");
}

// 排序数组
Array.Sort(list);
Console.WriteLine("排序数组");
foreach (var item in list)
{
    Console.Write(item + " ");
}

Console.ReadLine();
